package domainModel;

import java.util.Date;

import java.util.concurrent.ConcurrentHashMap;

/**
 * The Interface TopicInt.
 */
public interface TopicInt {

		/**
		 * Gets the id.
		 *
		 * @return the id
		 */
		public int getId();
		
		/**
		 * Gets the title.
		 *
		 * @return the title
		 */
		public String getTitle();
		
		/**
		 * Gets the creation time.
		 *
		 * @return the creation time
		 */
		public Date getCreationTime();
		
		/**
		 * Sets the title.
		 *
		 * @param title the new title
		 */
		public void setTitle(String title);
		
		/**
		 * Adds the post.
		 *
		 * @param newPost the new post
		 */
		public void addPost(PostInt newPost);
		
		/**
		 * Removes the post.
		 *
		 * @param post the post
		 */
		public void removePost(int postId);
		
		public void setCreator(MemberInt creator);
		
		public MemberInt getCreator();
		
		public ConcurrentHashMap<Integer, PostInt> getPosts();
}
